﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrativo/MasterAdministrativo/Administrativo.Master" AutoEventWireup="true" CodeBehind="CadastrarEmailEvangelho.aspx.cs" Inherits="Acamps.Web.Administrativo.CadastrarEmailEvangelho" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        input[type="text"]
        {
            width: 300px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="width: 100%; height: 400px;">
        <div class="col7 left">
            <div style="overflow: auto; max-height: 500px;">
                <table style="width: 100%;" class="gridLista">
                    <tr>
                        <th style="width: 50px;">Ação
                        </th>
                        <th>E-mail
                        </th>
                    </tr>
                    <asp:Repeater ID="rptDados" runat="server">
                        <ItemTemplate>
                            <tr>
                                <td>
                                    <a href='<%# string.Format("CadastrarEmailEvangelho.aspx?id={0}",Eval("Id")) %>'><i
                                        class="icon-white icon-edit"></i></a>
                                </td>
                                <td>
                                    <%# Eval("Email") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <td colspan='5'>
                            <asp:Label ID="lblMensagem" runat="server" ForeColor="Red" Text="Nenhum registro encontrado."
                                Visible="false"></asp:Label>
                        </td>
                    </tr>
                </table>
            </div>
            <asp:Button runat="server" ID="btnEnviarEmail" Text="Enviar Evangelho" CssClass="btn btn-primary"
                Style="margin-left: 40%; margin-top: 10px;" OnClick="btnEnviarEmail_OnClick" Visible="false" />
            <asp:Label runat="server" ID="lblSemEvangelho" ForeColor="red" Visible="false" Style="margin-left: 10%; margin-top: 10px; font-size: 18px;">Por favor, cadastre primeiro o evangelho para o dia.</asp:Label>
        </div>
        <div class="line2">
        </div>
        <div class="col9 right" style="overflow: auto; max-height: 510px;" id="dvFormulario" runat="server">
            <div class="left" style="width: 314px;">
                <span>E-mail: </span>
                <asp:TextBox ID="txtEmail" runat="server" />
                <br />
                <asp:Button runat="server" ID="btnSalvar" Text="Salvar" CssClass="btn btn-primary" OnClick="btnSalvar_OnClick" Visible="false" />
                <asp:Button runat="server" ID="btnLimpar" Text="Limpar" CssClass="btn" OnClick="btnLimpar_OnClick" Visible="false" />
            </div>
        </div>
    </div>

    <asp:HiddenField runat="server" ID="hidEmail" />
</asp:Content>
